package com.orange.score.utils;

public class DataUtils
{
  public static String fatmatDate(String paramString)
  {
    StringBuilder localStringBuilder = new StringBuilder();
    localStringBuilder.append(paramString.substring(4, 6)).append("/").append(paramString.substring(6, 8)).append(" ").append(paramString.substring(8, 10)).append(":").append(paramString.substring(10, 12));
    return localStringBuilder.toString();
  }

  public static Boolean isStarted(int paramInt)
  {
    Boolean localBoolean;
    switch (paramInt)
    {
    case -9:
    case -8:
    case -7:
    case -6:
    case -5:
    case -4:
    case -3:
    case -2:
    default:
      localBoolean = Boolean.valueOf(false);
    case 1:
    case 3:
    case 2:
    case -1:
    case 4:
    case -11:
    case -12:
    case -13:
    case -14:
    case -10:
    case 0:
    }
    while (true)
    {
      while (true)
      {
        while (true)
        {
          while (true)
          {
            while (true)
            {
              while (true)
              {
                while (true)
                {
                  while (true)
                  {
                    while (true)
                    {
                      while (true)
                      {
                        while (true)
                        {
                          return localBoolean;
                          localBoolean = Boolean.valueOf(true);
                        }
                        localBoolean = Boolean.valueOf(true);
                      }
                      localBoolean = Boolean.valueOf(true);
                    }
                    localBoolean = Boolean.valueOf(true);
                  }
                  localBoolean = Boolean.valueOf(true);
                }
                localBoolean = Boolean.valueOf(false);
              }
              localBoolean = Boolean.valueOf(false);
            }
            localBoolean = Boolean.valueOf(false);
          }
          localBoolean = Boolean.valueOf(false);
        }
        localBoolean = Boolean.valueOf(false);
      }
      localBoolean = Boolean.valueOf(false);
    }
  }

  public static String toChuPanString(String paramString)
  {
    Object localObject;
    if ((paramString == null) || (paramString.length() == 0))
      localObject = "";
    while (true)
    {
      String str;
      while (true)
      {
        String[] arrayOfString;
        double d;
        int i;
        while (true)
        {
          return localObject;
          arrayOfString = new String[41];
          arrayOfString[0] = "平手";
          arrayOfString[1] = "平手/半球";
          arrayOfString[2] = "半球";
          arrayOfString[3] = "半球/一球";
          arrayOfString[4] = "一球";
          arrayOfString[5] = "一球/球半";
          arrayOfString[6] = "球半";
          arrayOfString[7] = "球半/两球";
          arrayOfString[8] = "两球";
          arrayOfString[9] = "两球/两球半";
          arrayOfString[10] = "两球半";
          arrayOfString[11] = "两球半/三球";
          arrayOfString[12] = "三球";
          arrayOfString[13] = "三球/三球半";
          arrayOfString[14] = "三球半";
          arrayOfString[15] = "三球半/四球";
          arrayOfString[16] = "四球";
          arrayOfString[17] = "四球/四球半";
          arrayOfString[18] = "四球半";
          arrayOfString[19] = "四球半/五球";
          arrayOfString[20] = "五球";
          arrayOfString[21] = "五球/五球半";
          arrayOfString[22] = "五球半";
          arrayOfString[23] = "五球半/六球";
          arrayOfString[24] = "六球";
          arrayOfString[25] = "六球/六球半";
          arrayOfString[26] = "六球半";
          arrayOfString[27] = "六球半/七球";
          arrayOfString[28] = "七球";
          arrayOfString[29] = "七球/七球半";
          arrayOfString[30] = "七球半";
          arrayOfString[31] = "七球半/八球";
          arrayOfString[32] = "八球";
          arrayOfString[33] = "八球/八球半";
          arrayOfString[34] = "八球半";
          arrayOfString[35] = "八球半/九球";
          arrayOfString[36] = "九球";
          arrayOfString[37] = "九球/九球半";
          arrayOfString[38] = "九球半";
          arrayOfString[39] = "九球半/十球";
          arrayOfString[40] = "十球";
          d = Double.parseDouble(paramString);
          i = (int)Math.abs(4.0D * d);
          if (i < arrayOfString.length)
            break;
          localObject = "";
        }
        str = arrayOfString[i];
        if (d < 0D)
          break;
        localObject = str;
      }
      localObject = "受" + str;
    }
  }

  public static String toDaxiaoPanKouString(String paramString)
  {
    String str;
    if ((paramString == null) || (paramString.length() == 0))
      str = "";
    while (true)
    {
      String[] arrayOfString;
      int i;
      while (true)
      {
        float f;
        while (true)
        {
          return str;
          arrayOfString = new String[57];
          arrayOfString[0] = "0";
          arrayOfString[1] = "0/0.5";
          arrayOfString[2] = "0.5";
          arrayOfString[3] = "0.5/1";
          arrayOfString[4] = "1";
          arrayOfString[5] = "1/1.5";
          arrayOfString[6] = "1.5";
          arrayOfString[7] = "1.5/2";
          arrayOfString[8] = "2";
          arrayOfString[9] = "2/2.5";
          arrayOfString[10] = "2.5";
          arrayOfString[11] = "2.5/3";
          arrayOfString[12] = "3";
          arrayOfString[13] = "3/3.5";
          arrayOfString[14] = "3.5";
          arrayOfString[15] = "3.5/4";
          arrayOfString[16] = "4";
          arrayOfString[17] = "4/4.5";
          arrayOfString[18] = "4.5";
          arrayOfString[19] = "4.5/5";
          arrayOfString[20] = "5";
          arrayOfString[21] = "5/5.5";
          arrayOfString[22] = "5.5";
          arrayOfString[23] = "5.5/6";
          arrayOfString[24] = "6";
          arrayOfString[25] = "6/6.5";
          arrayOfString[26] = "6.5";
          arrayOfString[27] = "6.5/7";
          arrayOfString[28] = "7";
          arrayOfString[29] = "7/7.5";
          arrayOfString[30] = "7.5";
          arrayOfString[31] = "7.5/8";
          arrayOfString[32] = "8";
          arrayOfString[33] = "8/8.5";
          arrayOfString[34] = "8.5";
          arrayOfString[35] = "8.5/9";
          arrayOfString[36] = "9";
          arrayOfString[37] = "9/9.5";
          arrayOfString[38] = "9.5";
          arrayOfString[39] = "9.5/10";
          arrayOfString[40] = "10";
          arrayOfString[41] = "10/10.5";
          arrayOfString[42] = "10.5";
          arrayOfString[43] = "10.5/11";
          arrayOfString[44] = "11";
          arrayOfString[45] = "11/11.5";
          arrayOfString[46] = "11.5";
          arrayOfString[47] = "11.5/12";
          arrayOfString[48] = "12";
          arrayOfString[49] = "12/12.5";
          arrayOfString[50] = "12.5";
          arrayOfString[51] = "12.5/13";
          arrayOfString[52] = "13";
          arrayOfString[53] = "13/13.5";
          arrayOfString[54] = "13.5";
          arrayOfString[55] = "13.5/14";
          arrayOfString[56] = "14";
          f = Float.parseFloat(paramString);
          if (f <= 14.0F)
            break;
          str = paramString;
        }
        i = (int)Math.abs(4.0F * f);
        if (i < arrayOfString.length)
          break;
        str = "";
      }
      str = arrayOfString[i];
    }
  }

  public static String toMatchStatusString(int paramInt)
  {
    String str;
    switch (paramInt)
    {
    case -9:
    case -8:
    case -7:
    case -6:
    case -5:
    case -4:
    case -3:
    case -2:
    default:
      str = "未开赛";
    case 1:
    case 3:
    case 2:
    case -1:
    case 4:
    case -11:
    case -12:
    case -13:
    case -14:
    case -10:
    case 0:
    }
    while (true)
    {
      while (true)
      {
        while (true)
        {
          while (true)
          {
            while (true)
            {
              while (true)
              {
                while (true)
                {
                  while (true)
                  {
                    while (true)
                    {
                      while (true)
                      {
                        while (true)
                        {
                          return str;
                          str = "上半场";
                        }
                        str = "下半场";
                      }
                      str = "中场";
                    }
                    str = "完场";
                  }
                  str = "加时";
                }
                str = "待定";
              }
              str = "腰斩";
            }
            str = "中断";
          }
          str = "推迟";
        }
        str = "取消";
      }
      str = "未开赛";
    }
  }
}